// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const pre = 'group_';

export default {
  path: '/admin/group',
  name: 'group',
  header: 'group',
  redirect: {
    name: `${pre}group`,
  },
  component: BasicLayout,
  children: [
	{
	  path: 'timeline',
	  name: `${pre}timeline`,
	  meta: {
	    auth: ['admin-group-timeline'],
	    title: '用户动态',
	  },
	  component: () => import('@/pages/group/timeline/index'),
	},
	{
	  path: 'tdetail/:id?',
	  name: `${pre}tdetail`,
	  meta: {
	    auth: ['admin-group-timeline-detail'],
	    title: '动态详情',
	  },
	  component: () => import('@/pages/group/timeline/detail/index'),
	},
	{
	  path: 'circle',
	  name: `${pre}circle`,
	  meta: {
	    auth: ['admin-group-circle'],
	    title: '用户圈子',
	  },
	  component: () => import('@/pages/group/circle/index'),
	},
	{
	  path: 'cdetail/:id/:name?',
	  name: `${pre}cdetail`,
	  meta: {
	    auth: ['admin-group-cdetail'],
	    title: '圈子详情',
	  },
	  component: () => import('@/pages/group/circle/timeline/index'),
	},
	{
	  path: 'audicircle',
	  name: `${pre}audicircle`,
	  meta: {
	    auth: ['admin-group-audicircle'],
	    title: '申请加入圈子',
	  },
	  component: () => import('@/pages/group/audicircle/index'),
	}
  ],
};
